package com.saxon.springboot.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;


import java.util.Date;
import java.util.List;
import java.util.Map;

@Component
@ConfigurationProperties (prefix = "person")
@AllArgsConstructor
@Data
@NoArgsConstructor
@Validated
public class Person {
    private String name;
    private int age;
    private Map<String, Object> map;
    private List<Integer> list;
    private Date date;

}
